package com.bw.finance.controller;


import com.bw.finance.conf.ResponseResult;
import com.bw.finance.service.IEbankBackPlanService;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lizhengqian
 * @since 2020-08-25
 */
@RestController
@RequestMapping("/back")
public class EbankBackPlanController {

    @Resource
    private IEbankBackPlanService iEbankBackPlanService;

    @PostMapping("/search/{id}")
    public ResponseResult search(@PathVariable int id){
        ResponseResult result = ResponseResult.SUCCESS();
        return iEbankBackPlanService.getlist(id);
    }
}
